package com.guangfeng.yql.bean.dto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author yql
 * @since 2022-09-20
 */
@Data
@Accessors(chain = true)
@TableName("yql_user")
@ApiModel(value = "UserDto对象", description = "用户表")
public class UserLoginDto implements Serializable {



    @ApiModelProperty("用户昵称")
    @TableField("nick_name")
    @Length(max = 50,message = "用户昵称 不能成功50字")
    @NotEmpty(message = "用户昵称 不能为空")
    private String nickName;



    @ApiModelProperty("登录密码")
    @TableField("login_password")
    @Length(max = 50,message = "登录密码 不能成功50字")
    @NotEmpty(message = "登录密码 不能为空")
    private String loginPassword;


    @ApiModelProperty("手机号码")
    @TableField("user_mobile")
    @Length(max = 50,message = "手机号码 不能成功50字")
    @NotEmpty(message = "手机号码 不能为空")
    private String userMobile;


}
